# OpenCV
set(OpenCV_DIR "/home/zxy/packages/opencv-4.6.0/build" CACHE PATH "OpenCVConfig.cmake")
find_package(OpenCV REQUIRED core videoio)

# OpenMP
find_package(OpenMP REQUIRED)
if(OPENMP_FOUND)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()

# ncnn
set(ncnn_DIR "/home/zxy/packages/ncnn/build/install/lib/cmake/ncnn" CACHE PATH "ncnnConfig.cmake")
find_package(ncnn REQUIRED)


set(SRC_FILES
    benchmark.cpp
)

add_executable(bench ${SRC_FILES})
target_link_libraries(bench PRIVATE ${OpenCV_LIBS} ncnn OpenMP::OpenMP_CXX)
